//
//  ProgressViewController.swift
//  CXSwiftWB
//
//  Created by meidaeriOS on 2017/6/12.
//  Copyright © 2017年 meidaer. All rights reserved.
//

import UIKit

class ProgressViewController: UIViewController {
    
    var a: CGFloat = 0

    @IBOutlet weak var progressImageView: ProgressImageView!
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(timeStart), userInfo: nil, repeats: true)
    }
    
    func timeStart() {
        a += 0.1
        self.progressImageView.prg = a;
    }

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
    }
    
}
